<?php
$db['business_goodscollection']=array (
  'columns' => 
  array (
    'gc_id' =>
	    array (
	      'type' => 'number',
	      'required' => true,
	      'pkey' => true,
	      'extra' => 'auto_increment',
	      'editable' => false,
		  'in_list' => true,
		  'default_in_list' => true,
	      'label' => app::get('b2c')->_('集货单ID'),
	      'comment' => app::get('b2c')->_('集货单ID'),
			'searchtype' => 'has',
			'filtertype' => 'yes',
    ),
	'childOrder_id'=>
        array (
            'type' => 'varchar(32)',
            'required' => true,
            'label' => app::get('b2c')->_('子单id'),
            'width' => 150,
            'comment' => app::get('b2c')->_('子单订单号'),
            'in_list' => true,
            'default_in_list' => true,
	        'searchtype' => 'has',
	        'filtertype' => 'yes',
        ),
    'mainOrder_id'=>
        array (
            'type' => 'varchar(32)',
            'required' => true,
            'label' => app::get('b2c')->_('主单id'),
            'width' => 150,
            'comment' => app::get('b2c')->_('主单订单号'),
            'in_list' => true,
            'default_in_list' => true,
	        'searchtype' => 'has',
	        'filtertype' => 'yes',
        ),
    'business_id'=>
		array(
		'type' => 'table:business_basicmsg',
		'label' => app::get('b2c')->_('供应商'),
		'width' => 150,
		'comment' => app::get('b2c')->_('供应商'),
		'in_list' => true,
		'default_in_list' => true,
		'searchtype' => 'has',
		'filtertype' => 'yes',
		),
	'member_id'=>
	  array(
		  'type' => 'table:members',
		  'label' => app::get('b2c')->_('集货员'),
		  'width' => 150,
		  'comment' => app::get('b2c')->_('集货员'),
		  'in_list' => true,
		  'default_in_list' => true,
		  'searchtype' => 'tequal',
		  'filtertype' => 'normal',
	  ),
	  'memo' =>
		  array (
			  'type' => 'longtext',
			  'label' => app::get('b2c')->_('备注'),
			  'comment' => app::get('b2c')->_('备注'),
			  'editable' => false,
			  'filtertype' => 'normal',
			  'in_list' => true,
		  ),
	'status' =>
	  array (
		  'type' =>
			  array (
				  0 => app::get('b2c')->_('未集货'),
				  1 => app::get('b2c')->_('部分集货'),
				  2 => app::get('b2c')->_('已集货'),
			  ),
		  'default'=>'0',
		  'label' => app::get('b2c')->_('集货状态'),
		  'required' => true,
		  'editable' => false,
		  'comment' => app::get('b2c')->_('集货状态'),
		  'in_list' => true,
		  'default_in_list' => true,
	  ),
	'createtime' =>
	  array (
		  'type' => 'time',
		  'label' => app::get('b2c')->_('创建时间'),
		  'width' => 110,
		  'editable' => false,
		  'filtertype' => 'time',
		  'filterdefault' => true,
		  'in_list' => true,
		  'default_in_list' => true,
		  'orderby' => true,
	  ),
	  'lastmodify' =>
		  array (
			  'label' => app::get('b2c')->_('最后更新时间'),
			  'width' => 150,
			  'editable' => false,
			  'type' => 'time',
			  'hidden' => 1,
			  'in_list' => true,
			  'default_in_list' => true,
			  'orderby' => true,
			  'comment' => app::get('b2c')->_('上次修改时间'),
		  ),

  ),
  'index' =>
  array (
    'ind_member_id' =>
    array (
        'columns' =>array(
            0 => 'member_id',
        ),
        'type' => 'hash',
    ),
  'ind_childOrder_id' =>
	  array (
		  'columns' =>array(
			  0 => 'childOrder_id',
		  ),
	  ),
  ),
  'engine' => 'innodb',
  'version' => '$Rev: 40912 $',
  'comment' => app::get('b2c')->_('供应商集货单表'),
);
